<!doctype html>
<html>
<head>
<?php $this->load->view('admin/common_head'); ?>
</head>
<body>
<div class="wrap J_check_wrap">
	<div class="nav">
		<?php
			$tabs = array('index' => '', 'check' => '', 'add' => '');
			$tabs[$this->router->fetch_method()] = 'class="current"';
		?>
		<ul class="cc">
			<li <?php echo $tabs['index']; ?>><a href="<?php echo site_url('admin/link/index'); ?>">链接列表</a></li>
			<li <?php echo $tabs['check']; ?>><a href="<?php echo site_url('admin/link/check'); ?>">链接审核</a></li>
			<li <?php echo $tabs['add']; ?>><a href="<?php echo site_url('admin/link/add'); ?>">+ 添加链接</a></li>
		</ul>
	</div>
	<div class="h_a">添加用户</div>
	<form id="J_link_add_form" action="<?php echo site_url('admin/link/do_add'); ?>" method="post" accept-charset="utf-8">
		<div class="table_full">
			<table width="100%">
				<col class="th" />
				<col width="400" />
				<col />
				<tr>
					<th><span class="red fr">*</span>链接分类</th>
					<td>
						<ul class="switch_list cc">
							<li><label><input type="checkbox" checked="checked" value="newhouse" name="types[]" /><span>新房</span></label></li>
							<li><label><input type="checkbox" checked="checked" value="secondhouse" name="types[]" /><span>二手</span></label></li>
						</ul>
					</td>
					<td><div class="fun_tips"></div></td>
				</tr>
				<tr>
					<th><span class="red fr">*</span>站点名称</th>
					<td><input type="text" name="name" value="" class="input length_5" /></td>
					<td><div class="fun_tips">友情链接显示的名称(不超15字)</div></td>
				</tr>
				<tr>
					<th><span class="red fr">*</span>站点地址</th>
					<td><input type="text" name="url" value="" class="input length_5" /></td>
					<td><div class="fun_tips">站点域名 例如：http://www.baidu.com</div></td>
				</tr>
				<tr>
					<th>站点LOGO</th>
					<td><input type="text" name="logo" value="" class="input length_5" /></td>
					<td><div class="fun_tips">图片地址，尺寸(88x31像素)，设置后自动为图片链接</div></td>
				</tr>
				<tr>
					<th>联系方式</th>
					<td><input type="text" name="contact" value="" class="input length_5" /></td>
					<td><div class="fun_tips">例如：某先生 18812345678</div></td>
				</tr>
				<tr>
					<th>显示顺序</th>
					<td><input type="text" name="vieworder" value="" class="input length_5" /></td>
					<td><div class="fun_tips">只能填写整数</div></td>
				</tr>
			</table>
		</div>
		<div class="btn_wrap">
			<div class="btn_wrap_pd">
				<button type="submit" class="btn btn_submit mr20" id="J_rights_form_btn">提交</button>
			</div>
		</div>
	</form>
</div>
<?php $this->load->view('admin/common_footer'); ?>
</body>
</html>